package com.yj.suncity.activity.shouye.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONObject;

public class SuperadvListBean {
	private String success;// ": "1",
	private String msg;// ": "获取信息成功",
	private List<SuperadvBean> data;// ": [

	public SuperadvListBean(JSONObject json) {

		this.success = json.optString("success");
		this.msg = json.optString("msg");
		this.data = new ArrayList<SuperadvBean>();
		JSONArray array = json.optJSONArray("data");
		if (array != null) {
			for (int i = 0; i < array.length(); i++) {
				JSONObject item = array.optJSONObject(i);
				if (item != null) {
					this.data.add(new SuperadvBean(item));
				}
			}
		}

	}

	public String getSuccess() {
		return success;
	}

	public String getMsg() {
		return msg;
	}

	public List<SuperadvBean> getData() {
		return data;
	}
}
